package com.next.muscu;

import java.util.Collection;
import java.util.Observable;
import java.util.Observer;
import java.util.Vector;

public class UserMessageVector extends Observable {

	Vector<String> messages;
	
	public UserMessageVector()
	{
		messages = new Vector<String>();
		
	}
	public String getMessage(int index) {
		return messages.get(index);
	}

	public Vector<String> getMessage() {
		return messages;
	}
	
	public void add(String mess)
	{
		messages.add(mess);
		this.setChanged();
		this.notifyObservers();
	}
	
	public int size()
	{return messages.size();}
}
